package com.sectan.sayhello;

import java.util.Locale;

import android.app.Activity;
import android.os.Bundle;
import android.speech.tts.TextToSpeech;
import android.speech.tts.TextToSpeech.OnInitListener;

public class StartActivity extends Activity implements OnInitListener {

	private TextToSpeech tts;

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		tts = new TextToSpeech(this, this);
	}

	@Override
	public void onInit(int status) {
		tts.setLanguage(Locale.GERMAN);
		tts.speak("Dies ist ein Text To Speech Test", TextToSpeech.QUEUE_FLUSH, null);		
	}

}